#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<string.h>
struct student
{
    int num;
    char name[20];
    char sex;
    int age;
    float score;
    char addr[30];
};
struct student s[3];
void print(struct student s[3])
{
    int i;
    for (i = 0; i < 3; i++)
    {
        printf("%d %s %c\n", s[i].num, s[i].name, s[i].sex);
        printf("%d %1f %s\n", s[i].age, s[i].score, s[i].addr);
    }
}
int main()
{
    struct student stu[3] = { {10101,"LiuHu",'F',18,99.7,"beijing road"},{10102,"NaoDan",'M',17,99.8,"shanghai road"},{10103,"MaHuangTeng",'F',48,99.9,"shenzhen road"} };
    print(stu);
    return 0;
}